using System;
using System.Collections.Generic;
using DapperExtensions.Mapper;
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Data
{
	public class DevJobworksheetTMapper : ClassMapper<DevJobworksheetT>
	{
		public DevJobworksheetTMapper()
		{
			Table("dev_jobworksheet_t");
			Map(f => f.Id).Column("id").Key(KeyType.Assigned);
			Map(f => f.ParentJob).Column("parent_job");
			Map(f => f.JobCode).Column("job_code");
			Map(f => f.JobName).Column("job_name");
			Map(f => f.JobLevel).Column("job_level");
			Map(f => f.JobType).Column("job_type");
			Map(f => f.JobSubtype).Column("job_subtype");
			Map(f => f.JobTeam).Column("job_team");
			Map(f => f.JobPerson).Column("job_person");
			Map(f => f.JobStatus).Column("job_status");
			Map(f => f.JobStarttime).Column("job_starttime");
			Map(f => f.JobEndtime).Column("job_endtime");
			Map(f => f.JobFlag).Column("job_flag");
			Map(f => f.VerifyPerson).Column("verify_person");
			Map(f => f.JobHour).Column("job_hour");
			Map(f => f.JobCost).Column("job_cost");
			Map(f => f.JobDevicestop).Column("job_devicestop");
			Map(f => f.PersonCreated).Column("person_created");
			Map(f => f.GmtCreated).Column("gmt_created");
			Map(f => f.PersonModified).Column("person_modified");
			Map(f => f.GmtModified).Column("gmt_modified");
			Map(f => f.StateInfo).Column("state_info");
			Map(f => f.IsUse).Column("is_use");
			Map(f => f.Version).Column("version");
		}
	}
}
